package com.mdd.admin.vo.coupon;

import lombok.Data;

import java.io.Serializable;

@Data
public class CouponReceiveLogListVo implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;
    private String username;
    private String name;
    private String avatar;
    private Integer receiveMethod;
    private String receiveMethodDesc;
    private Integer operator;
    private String operatorDesc;
    private String receiveTime;
    private String expirationTime;
    private Integer status;
    private String statusDesc;
    private String useTime;
    private Integer cancelBtn;

    public void setOperatorDesc(Integer operator){
        switch (operator){
            case 0:
                this.operatorDesc = "管理员";
                break;
            case 1:
                this.operatorDesc = "用户";
        }
    }

    public void setReceiveMethodDesc(Integer receiveMethod){
        switch (receiveMethod){
            case 0:
                this.receiveMethodDesc = "系统发放";
                break;
            case 1:
                this.receiveMethodDesc = "用户领取";
        }
    }
}
